<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes identifier {
            0%{
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(0);
            }
        }

        .com {
            animation: leftToRight 2s;;
        }
        .go {
            animation: leftToRight 2s reverse;
        }
    </style>
</head>
<body>
    <div id="app"></div>
</body>
    <script src="https://unpkg.com/vue@next"></script>
    <script>
        const app = Vue.createApp({
            data() {
            return {

                anniu: true
            }
        },
        methods: {
            hand(){
                this.anniu = !this.anniu
            }
        },

                template:`
                <div v-show="anniu" class="go">learn vue.js!!!!</div>
                <button @click="hand">按钮</button>
                `
            })

           app.mount("#app");
    </script>
</html>